import { createApp } from 'vue'
import App from './App.vue'
import 'virtual:svg-icons-register'
import 'element-plus/dist/index.css'
const app = createApp(App)
import ElementPlus from 'element-plus'
// 引入仓库
import pinia from './store'
// 引入全局组件
import gloablComponent from './components/index.ts'
//引入全局样式
import '@/styles/index.scss'
// 引入路由
import router from './router'
// 配置element-plus国际化，忽略当前文件ts类型的检测
//@ts-ignore
import ZhCn from 'element-plus/dist/locale/zh-cn.mjs'
app.use(ElementPlus, {
  locale: ZhCn,
})
// 安装仓库
app.use(pinia)
// 注册路由
app.use(router)
//注册全局组件
app.use(gloablComponent)
// 将应用挂载在挂载点上
app.mount('#app')
